package com.example.design.factory.abstractfactory;

import com.example.design.factory.factorymethod.Animal;
import com.example.design.factory.factorymethod.Cat;
import com.example.design.factory.factorymethod.Dog;

public class AnimalAFactory implements AnimalFactory {

    @Override
    public Animal createCat() {
        return new Cat();
    }

    @Override
    public Animal createDog() {
        return new Dog();
    }
}
